<?php
/**
 * @File	  : Base_Controller.php
 * @Project	  : vncphathoc
 * @author	  : ThanhMinh
 * @email	  : thanhminhld@yahoo.com - thanhminhld@gmail.com
 * @copyright : 2009
 */

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Base_Controller extends Controller
{
	protected $lang_default = null;
	protected $lang_tag     = null;
	/**
	 * Base_Controller constructor init Smarty and get config
	 * @access public
	 *
	 */
	public function __construct()
	{
		parent::Controller();

        $config = &get_config();
		$langDefault         = $this->lang_model->getLangDefault();
		$this->lang_default  = $langDefault->id;
		$lang_tag            = array('lang_tag' => $langDefault->tag);
		$this->lang_tag      = $langDefault->tag;
		$this->session->set_userdata($lang_tag);
        $this->assignMenu($config);
	}
	/**
	 * assignMenu
	 * @access private
	 * @param
	 * @return
	 */
	private function assignMenu($config)
	{
        /**
         * Your code here
         */
	}
}
?>